//
//  FilterView.h
//  W2MD
//
//  Created by zhudongwei on 14/10/29.
//  Copyright (c) 2014年 zhudongwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FilterLevel2View.h"
#import "BackgroundView.h"
#import "ClothesItemView.h"

typedef enum _FilterSubmenuType
{
    EM_FST_NONE = 0,
    EM_FST_Kuanshi=211,
    EM_FST_Zhuseban=212,
    EM_FST_Peiseban=214,
    EM_FST_YanSeshuxing=213,
    EM_FST_Chunseban=215,
    EM_FST_wZhuseban=216,
    EM_FST_touMingSeban=217,
}FilterSubmenuType;

typedef enum _FilterType
{
    EM_FT_None,
    EM_FT_YouZhuSe=1,
    EM_FT_WuZhuSe=2,
    EM_FT_ChunSe=3,
    EM_FT_ToumingSe=0,
}FilterType;

@protocol FilterViewDelegate <NSObject>

-(void)actionWithSubmenuType:(FilterSubmenuType)m_fst withFilterType:(FilterType)m_ft;
-(void)actionWithOK:(NSString*)str;
-(void)actionWithCancel;
-(void)actionWithColorChange:(FilterType)filtertype;
-(void)actionAddClothes;
-(void)actionDeleteClothes;

@end


@interface FilterView : UIView
@property(nonatomic,strong)IBOutlet UIView *level1ViewBG;
@property(nonatomic,strong)FilterLevel2View *filterLevel2View;
@property(nonatomic,strong)IBOutlet UIButton *kuanshiBtn;
@property(nonatomic,assign)id<FilterViewDelegate> filterViewDelegate;
@property(nonatomic,assign)FilterType filterType;
@property(nonatomic,strong)IBOutlet UIButton *yZSBtn;
@property(nonatomic,strong)IBOutlet UIButton *wZSBtn;
@property(nonatomic,strong)IBOutlet UIButton *cSBtn;
@property(nonatomic,strong)IBOutlet UIImageView *btnIV;
@property(nonatomic,assign)int initFlag;

@property(nonatomic,strong)ClothesItemView *clothesIV1;
@property(nonatomic,strong)ClothesItemView *clothesIV2;
@property(nonatomic,strong)ClothesItemView *clothesIV3;
@property(nonatomic,strong)ClothesItemView *clothesIV4;
@property(nonatomic,strong)UIButton *addBtn;
@property(nonatomic,strong)UIButton *rubbishBtn;

@property(nonatomic,strong)IBOutlet UIImageView *kuanshiImgView;
@property(nonatomic,strong)IBOutlet UILabel *kuanshiLabel;
@property(nonatomic,strong)IBOutlet UIImageView *arrowImgView;

@property(nonatomic,strong)IBOutlet UILabel *xijieLbl;
@property(nonatomic,strong)IBOutlet UISegmentedControl *seg;

@property(nonatomic,strong)IBOutlet UIView *bg1;
@property(nonatomic,strong)IBOutlet UIView *bg2;

@property(nonatomic,strong)NSString *path;
@property(nonatomic,assign)BOOL iPhone;

-(IBAction)btnClick:(id)sender;
-(void)level1ViewBGHidden;
-(void)level1ViewBGShow;
-(void)initView;
-(void)initFushiInfo:(NSMutableDictionary*)dic;
-(NSString*)getCheckL2Key;
-(void)initBtn;

-(void)reloadInfo;

-(IBAction)segValueChange:(id)sender;
@end
